package com.auxgroup.smarthome.business.service;

import com.auxgroup.bridge.app.inner.vo.DeviceModelSimpleVo;
import com.auxgroup.smarthome.business.service.inner.DeviceModelInfoInnerService;
import com.auxgroup.smarthome.business.vo.DeviceModelInfoVo;
import com.auxgroup.smarthome.syscode.BusinessCode;
import com.auxgroup.smarthome.utils.PageContent;
import com.auxgroup.smarthome.web.ApiResponse;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by niuGuangzhe on 2017/8/14.
 */
@Component
public class DeviceModelInfoInnerServiceFallback implements DeviceModelInfoInnerService {


    @Override
    public ApiResponse addDeviceModelInfo(String model, String modelItem, String dto) {
        return ApiResponse.prompt(BusinessCode.REMOTE_CALL_FAIL);
    }

    @Override
    public ApiResponse updateDeviceModelInfo(String modelId, String dto) {
        return ApiResponse.prompt(BusinessCode.REMOTE_CALL_FAIL);
    }

    @Override
    public ApiResponse<DeviceModelInfoVo> getDetailDeviceModelInfo(String model) {
        return ApiResponse.prompt(BusinessCode.REMOTE_CALL_FAIL);
    }

    @Override
    public ApiResponse<DeviceModelInfoVo> getDeviceModelInfoByModelId(String modelId) {
        return ApiResponse.prompt(BusinessCode.REMOTE_CALL_FAIL);
    }

    @Override
    public ApiResponse<List<DeviceModelSimpleVo>> getAllDeviceModelInfo() {
        return ApiResponse.prompt(BusinessCode.REMOTE_CALL_FAIL);
    }

    @Override
    public ApiResponse<PageContent<DeviceModelInfoVo>> getDetailDeviceModelInfos(String model, String modelItem, Integer page, Integer size) {
        return ApiResponse.prompt(BusinessCode.REMOTE_CALL_FAIL);
    }

    @Override
    public ApiResponse deleteDeviceModelInfo(String modelId) {
        return ApiResponse.prompt(BusinessCode.REMOTE_CALL_FAIL);
    }

    @Override
    public ApiResponse getModelItemsByKeyword(String keyword,int page,int size) {
        return ApiResponse.prompt(BusinessCode.REMOTE_CALL_FAIL);
    }

    @Override
    public boolean isExistsModelName(String model) {
        return false;
    }
}
